package com.aolong.archives.core.sysmanage.service.impl;

import com.aolong.archives.core.sysmanage.dao.IRoleDao;
import com.aolong.archives.core.sysmanage.entity.RoleEntity;
import com.aolong.archives.core.sysmanage.service.IRoleService;
import com.rock.platform.entity.ActionParamsEntity;
import com.rock.platform.entity.PageEntity;
import com.rock.platform.service.BaseService;
import com.rock.platform.util.GUID;

public class RoleService extends BaseService implements IRoleService {

	private IRoleDao dao;
	
	public PageEntity findAll(ActionParamsEntity actionParams) {
		return dao.findAll(actionParams);
	}

	public void add(RoleEntity entity) {
		
		entity.setRoleId(GUID.NEWID());
		dao.add(entity);
	}

	public void remove(Object[] ids) {
		dao.remove(ids,RoleEntity.class);
	}

	public void modify(RoleEntity entity) {
		dao.modify(entity);
	}

	public IRoleDao getDao() {
		return dao;
	}

	public void setDao(IRoleDao dao) {
		this.dao = dao;
	}

}
